package com.bocai.dahuatech.ui.frag;
import android.annotation.SuppressLint;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;

import com.bocai.dahuatech.R;
import com.bocai.dahuatech.base.BaseFragment;

import butterknife.Bind;
import butterknife.ButterKnife;


/**
 * 产品描述
 */
@SuppressLint("ValidFragment")
public class ProductMemoFragment extends BaseFragment {
    private View view;
    @Bind(R.id.tv_productmemo)
    TextView tvProductmemo;
    String info;
    @Nullable
    @Override
    public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
        view = inflater.inflate(R.layout.productmemofrag, container, false);
        initView(view);
        return view;
    }
    public ProductMemoFragment(String info){
        this.info=info;

    }
    private void initView(View view) {
        ButterKnife.bind(this,view);
        tvProductmemo.setText(info);
        initEvent();
    }

    private void initEvent() {
    }

    @Override
    public void onDestroyView() {
        super.onDestroyView();
        ButterKnife.unbind(this);
    }
    @Override
    public void onResume() {
        super.onResume();
    }


}
